package com.hzlx.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MessageHandler {
    @EventListener
    @Async
    public void handler(String message){
        log.info("收到："+message);
    }
}
